package com.nineyang.config;

import com.nineyang.bean.AppBean2;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * ClassName:Appcofig
 * Description:
 * author: jiuyang
 * DateTime: 2025/1/15 上午11:34
 */
@Configuration
public class Appcofig {

    @Bean
    @ConfigurationProperties(prefix = "tjy2.app1")
    public AppBean2 getAppbean2(){
        return new AppBean2();
    }

}
 